home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
SpinningCursor Distribution
/
SampleSpin.p
< prev
next >
Wrap
Text File
|
1993-02-04
|
503b
|
36 lines
program SampleSpin;
const
rAnimatedCursor = 128;
{ Some cursor-spinning stuff !}
procedure InitCursorCtl (resID: Integer);
external;
procedure StartAsyncSpinning (period: Integer);
external;
procedure StopAsyncSpinning;
external;
procedure MainLoop;
begin
InitCursorCtl(rAnimatedCursor);
StartAsyncSpinning(10);
repeat
{ Do some tasks that you want a spinning cursor associated with }
until Button;
StopAsyncSpinning;
end;{ procedure MainLoop }
begin
MainLoop;
end.